<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
    <!-- 准备好一个容器 -->
    <div id="root">
        <h1>插值语法</h1>
        <h3>您好, {{name}}</h3>
        <hr/>
        <h1>指令语法</h1>
        <a v-bind:href="school.url.toUpperCase()" :x="school.hello">点我去百度</a> <!-- 遇到v-bind 引号里面的东西当作表达式来引用 -->
        <a :href="url" x="hello">点我去{{school.name}}学习2</a>
    </div>
</body>
    <script type="text/javascript">
        Vue.config.productionTip = false //阻止 vue 在启动时生成产生提示
        new Vue({
            el: '#root',
            data:{
                name: 'jack',
                school:{
                    url: 'http://baidu.com',
                    hello: '你好',
                    name: '西安文理'
                }
            }
        })
    </script>
</html>